﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using vbReturn.classes;
using moveErrorFile.classes;
using System.IO;
using NPOI.HSSF.UserModel;

namespace moveErrorFile
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                string sErrorMsg = null;

                xmlHelper xmlHelp = new xmlHelper();


                //get all the file structure
                List<clsOrderConfigHeader> configList = xmlHelp.getConfig();


                if (!string.IsNullOrEmpty(sErrorMsg))
                {
                    return;
                }

                clsExcelHelper.createFolderFileDetExcel(out sErrorMsg, configList);

                if (!string.IsNullOrEmpty(sErrorMsg))
                {
                    System.Diagnostics.Debug.Write(sErrorMsg);
                    return;
                }
               
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.Write(ex.Message);
                return;
            }
        }
    }
}
